import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import router from './route/index.js'
import * as api from './api'
import Vant from 'vant'
import 'vant/lib/index.css'
import '@a/style/frame.scss'
import '@/assets/js/flexible.js' /* 响应式单位 */
import navs from '@/components/navs.vue' //全局组件
import * as utils from './utils/utils.js'
import global from './utils/global.js'

const app = createApp(App)
app.config.globalProperties.$api = api
app.config.globalProperties.$toPage = global.toPage
app.config.globalProperties.$goPage = global.goPage
app.config.globalProperties.$utils = utils
app.config.globalProperties.$oss = import.meta.env.VITE_BASE_OSSURL
// 自定义指令
global.directives(app)
app.component('navs', navs)
app.use(Vant)
app.use(router)
app.use(store)
app.mount('#app')
